/**
 * 
 */
package com.agrec.client.actors;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * @author Alaa Gharbawi
 *
 */
public class User implements IsSerializable {

	/**
	 * This class hold the Recruitment Agency User Information
	 */
	
	private int id;
	private String userName;
	private String password;
	private String email;
	private String phone;
	private String ext;
	private String role;
	
	public User() {
		id(0);
		userName(new String());
		password(new String());
		email(new String());
		phone(new String());
		ext(new String());
		role(new String());
	}
	
	public User(int id, String userName, String password, String email, String phone, String officeExt, String role) {
		id(id);
		userName(userName);
		password(password);
		email(email);
		phone(phone);
		ext(officeExt);
		role(role);
	}

	/**
	 * @param id the id to set
	 */
	public void id(int id) {
		this.id = id;
	}

	/**
	 * @return the id
	 */
	public int id() {
		return id;
	}

	/**
	 * @param userName the userName to set
	 */
	public void userName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return the userName
	 */
	public String userName() {
		return userName;
	}

	/**
	 * @param password the password to set
	 */
	public void password(String password) {
		this.password = password;
	}

	/**
	 * @return the password
	 */
	public String password() {
		return password;
	}

	/**
	 * @param email the email to set
	 */
	public void email(String email) {
		this.email = email;
	}

	/**
	 * @return the email
	 */
	public String email() {
		return email;
	}

	/**
	 * @param phone the phone to set
	 */
	public void phone(String phone) {
		this.phone = phone;
	}

	/**
	 * @return the phone
	 */
	public String phone() {
		return phone;
	}

	/**
	 * @param ext the ext to set
	 */
	public void ext(String ext) {
		this.ext = ext;
	}

	/**
	 * @return the ext
	 */
	public String ext() {
		return ext;
	}

	/**
	 * @param role the role to set
	 */
	public void role(String role) {
		this.role = role;
	}

	/**
	 * @return the role
	 */
	public String role() {
		return role;
	}


}
